import React, { FC } from 'react';
import { Select } from 'choerodon-ui/pro';

const { Option, OptGroup } = Select;

export interface SelectOptGroupProps {}

const SelectOptGroup: FC<SelectOptGroupProps> = () => {
  return (
    <Select onChange={e => console.log(e)}>
      <OptGroup label="分组1">
        <Option value="1">选项1</Option>
        <Option value="2">选项2</Option>
        <Option value="3">选项3</Option>
      </OptGroup>
      <OptGroup label="分组2">
        <Option value="4">选项4</Option>
        <Option value="5">选项5</Option>
        <Option value="6">选项6</Option>
      </OptGroup>
    </Select>
  );
};

export default SelectOptGroup;
